<?php
defined('_JEXEC') or die('Restricted access');
?>
<a href="index.php?option=com_jhtraq&view=users&task=editgroup">Add New</a>
<form action="index.php" method="post" name="adminForm" autocomplete="off">
<input type="hidden" name="option" value="com_jhtraq" />
<input type="hidden" name="view" value="users" />

<fieldset class="adminform">
<table width="100%" cellspacing="0" class="adminlist">
	<thead>
		<tr>
			<th>#</th>
			<th><?php echo JText::_('COM_JHTRAQ_GROUP');?></th>
			<th></th>
		</tr>
	</thead>
	<tfoot>
		<tr>
		<th colspan="5"><?php echo $this->pagination->getListFooter(); ?></th>
	</tfoot>
	<tbody>
	  <?php
	  $r = 0;
	  foreach($this->groups as $group)
	  {
		  ?>
		  <tr class="row<?php echo $r;?>">
			<td><?php echo $group['id'];?></td>
			<td><a href="index.php?option=com_jhtraq&view=users&task=editgroup&id=<?php echo $group['id'];?>"><?php echo $group['name'];?></a></td>
			<td><?php if($group['id'] > 3) {?>
				<a href="index.php?option=com_jhtraq&view=users&task=removegroup&id=<?php echo $group['id'];?>"><?php echo JText::_('COM_JHTRAQ_DELETE');?></a>
				<?php } ?>
			</td>
			
		  </tr>
		 <?php 
	  }
	  ?>
	</tbody>
	

</table>
</fieldset>
</form>